<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* await 后面如果是promise会得到then的结果 */
        async function show(){
            console.log("strat");
            var p=await Promise.resolve("mid")
            console.log(p);
            console.log("end");
        }
        show();
    </script>
</body>
</html>